//
//  TitleCollectionViewCell.m
//  沙哈拉FM
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 S1mpl3. All rights reserved.
//
#import "FitHeader.h"
#import "TitleCollectionViewCell.h"

@implementation TitleCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatView];
    }
    return self;
}

-(void)creatView{
    _titleLabel = [[BaseLabel alloc] init];
    [_titleLabel setFontSize:16];
    _titleLabel.textAlignment = 1;
    [self.contentView addSubview:_titleLabel];
    _lineLabel = [[BaseLabel alloc] init];
//    _lineLabel.backgroundColor = [UIColor whiteColor];
    _lineLabel.layer.cornerRadius = 3 * FITHeight;
    [self.contentView addSubview:_lineLabel];
}

-(void)layoutSubviews{
    [super layoutSubviews];
    _titleLabel.frame = CGRectMake(0, 0, 375 * FITWidth / 4.0, 47 * FITHeight);
    _lineLabel.frame = CGRectMake(0, _titleLabel.frame.origin.y + _titleLabel.frame.size.height, _titleLabel.frame.size.width, 3 * FITHeight);
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
